package point;

import java.util.ArrayList;

public class AutomaticConvertion {

	@SuppressWarnings("unchecked")
	public static void main(String[] args) {

		Point p = new Point(3, 2);
		Object o = p;
		Cloneable c = p;

		ArrayList list = new ArrayList();
		list.add(o); // No casting
		list.add(p); // Point to Object
		list.add(c); // Cloneable to Object

		System.out.println(list.toString());
	}

}
